import {get, post, save, deletep, put, upload, putX} from './http'

/**
 *登录调用地址
 * @param {K} p
 */
export const login_Url = p => post('/login/auth', p);


/**
 * 根据 ID 查询
 * @param p
 * @returns {Promise<unknown>}
 */
export const findById = p => post('/user/findById', p);

/**
 * 查询所有
 * @param p
 * @returns {Promise<unknown>}
 */
export const findAll = p => post('/user/findAll', p);

/**
 * 新增
 * @param p
 * @returns {Promise<unknown>}
 */
export const insert = p => save('/user/insert', p);

/**
 * 修改
 * @param p
 * @returns {Promise<unknown>}
 */
export const update = p => put('/user/update', p);

/**
 * 删除
 * @param p
 * @returns {Promise<unknown>}
 */
export const del = p => deletep('/user/delete', p);


